package com.bmcsoft.service.impl;

/**
 * @User: Alan
 * @Date: 2019/9/23
 * @Time: 15:04
 * @Version: 1.0
 */


import com.bmcsoft.service.AccountService;

import java.util.Date;

/**
 * 账户业务层的实现类
 */
public class AccountServiceImpl implements AccountService {

//如果是经常变化的数据，并不适用于注入的方式
    private String name;
    private Integer age;
    private Date birthday;

    public AccountServiceImpl(String name,Integer age,Date birthday){
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    public void saveAccount(){
        System.out.println("service中的saveAccount执行成功！"+name+","+age+","+birthday);

    }

}
